/* eslint-disable indent */
import { lazy } from 'react';

import { RoutesType } from '@customTypes/customTypes';

/** 测试路由 */
const testRoutes: RoutesType[] =
  import.meta.env.MODE !== 'production'
    ? [
        {
          path: '/test-pages',
          name: '回登录页',
          component: lazy((): Promise<any> => import('@/components/TestPages'))
        },
        {
          path: '/extends',
          name: '继承类',
          component: lazy((): Promise<any> => import('@/test/pages/Extends'))
        },
        {
          path: '/file',
          name: '文件流相关',
          component: lazy((): Promise<any> => import('@/test/pages/File'))
        },
        {
          path: '/upload',
          name: '附件上传',
          component: lazy((): Promise<any> => import('@/test/pages/Upload'))
        },
        {
          path: '/crop-upload',
          name: '可裁剪附件上传',
          component: lazy((): Promise<any> => import('@/test/pages/CropUpLoad'))
        },
        {
          path: '/rb-upload-wapper',
          name: '附件上传容器',
          component: lazy((): Promise<any> => import('@/test/pages/WapperUpload'))
        }
      ]
    : [];

export default testRoutes;
